In [7]:
import etherscan.stats as stats
import json
In [8]:
with open('../../api_key.json', mode='r') as key_file:
key = json.loads(key_file.read())['key']
In [9]:
api = stats.Stats(api_key=key)
In [10]:
api.get_ether_last_price()
Out[10]:
In [11]:
api.get_total_ether_supply()
Out[11]:
In [ ]: